home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / comm / 110a115a.zip / SCRIPTS.ZIP / DEM#.SLT < prev    next >
Text File  |  1995-12-21  |  1KB  |  33 lines

  1. /****************************************************************/
  2. /*                                                              */
  3. /*  Demo of how to use #include and other #compiler directives  */
  4. /*  from within SALT script files.                              */
  5. /*                                                              */
  6. /*                   Copyright 1995 deltaComm Development, Inc. */
  7. /*                                                              */
  8. /****************************************************************/
  9.  
  10. #compileto "demo#.slc"                         // Set compile  destination
  11. #debugon                                       // Activate debigging
  12. #define testing
  13.  
  14. main()
  15. {
  16.  
  17.  #ifndef testing                               // Test if 'Testing' defined
  18.    #includedir "c:\ver1"                       // Set include directory
  19.  #else
  20.    #includedir "c:\ver2"
  21.  #endif                                        // Conclude the 'if' sequence
  22.  
  23.  #ifdef saltII
  24.    #include "thatproc.slt"                     // Include a file
  25.  #endif
  26.  
  27.  // The rest of the script goes here
  28.  
  29.  #undef testing                                // Undefine 'testing'
  30.  #debugoff                                     // Deactivate debugging
  31. }
  32.  
  33.